package cn.lichenes.repository;

import cn.lichenes.entity.Address;
import cn.lichenes.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface AddressRepository extends JpaRepository<Address,Integer>,JpaSpecificationExecutor<Address>{

    List<Address> findByUser(User user);
}
